package org.example;





public class HelloWorld {

    /* 第一个Java程序
     * 它将输出字符串 Hello World
     */


    public static class MathUtils {
        public int add(int a, int b) {
            return a + b;
        }

        public double add(double a, double b) {
            return a + b;
        }
    }



    public static void main(String[] args) {
        System.out.println("Hello World"); // 输出 Hello World


        int a = 10;
        int b = 20;
        int m = new MathUtils().add(a, b);
        System.out.println(m);
    }

}